<?php
/**
 * Created by PhpStorm.
 * User: Shen
 * Date: 2016/7/24
 * Time: 18:11
 */
namespace DuiCode;

class SizeDrawDecorator implements DrawDecorator{
    protected $size;

    function __construct($size = '14px'){
        $this->size = $size;
    }

    function beforeDraw(){
        // TODO: Implement beforeDraw() method.
        echo "<div style='font-size: {$this->size}'>";
    }

    function afterDraw(){
        // TODO: Implement afterDraw() method.
        echo "</div>";
    }
}